<template>
  <div class="demo">
    <div class="demo-title">卡片式页签容器</div>
    <div class="demo-content">
      <Tabs v-model:activeKey="activeKey" type="card">
        <Tabs.TabPane key="1" tab="Tab Title 1">
          <p>Content of Tab Pane 1</p>
          <p>Content of Tab Pane 1</p>
          <p>Content of Tab Pane 1</p>
        </Tabs.TabPane>
        <Tabs.TabPane key="2" tab="Tab Title 2">
          <p>Content of Tab Pane 2</p>
          <p>Content of Tab Pane 2</p>
          <p>Content of Tab Pane 2</p>
        </Tabs.TabPane>
        <Tabs.TabPane key="3" tab="Tab Title 3">
          <p>Content of Tab Pane 3</p>
          <p>Content of Tab Pane 3</p>
          <p>Content of Tab Pane 3</p>
        </Tabs.TabPane>
      </Tabs>
    </div>
  </div>
</template>

<script lang="ts" setup>
  import { ref } from 'vue';
  import Tabs from '@sscd/tabs';
  const activeKey = ref('2');
</script>

<style lang="less" scoped></style>
